<?php

function __autoload($class_name) {
	require_once ( "./$class_name.class.php" );
}

echo "<pre>";
//Exemple du maitre et du chien E1
$d1=new Disciple("Kevin");
$p=new Philosophe("Dieu");

echo $p;
echo $d1;

echo "############################################\n";
#$d1->setPhilosophe($p);
$p->addDisciple($d1, true);
echo $p;
echo $d1;

$disc=array();
for ($i=2;$i<100;$i++) {
	$di="d$i";
	$$di=new Disciple("Disciple $i");
	array_push($disc, $$di);
}

print_r($disc);
$p2=new Philosophe("Clement", $disc);
echo $p2;

for ($i=2;$i<100;$i++) {
	$di="d$i";
	echo "* ".$$di;
}
echo "</pre>";
?>